<div class="layui-body">
<div class="aright">

<div class="layui-tab" lay-filter="demo" style="margin: 20px 30px 20px 20px;">
   
  <div class="layui-tab-content">
     
    <div class="layui-tab-item layui-show">
	<form class="layui-form bform" method="post" action="{:url('man/article/edititem')}" enctype="multipart/form-data">
  <input type="hidden" name="id" value="{$item.id}">
  <input type="hidden" name="nid" value="{$map.nid}">
  <input type="hidden" name="nceng" value="{$map.nceng}">
  <div class="layui-form-item">
    <label class="layui-form-label">题目标题：</label>
    <div class="layui-input-block">
      <input type="text" name="iname" value="{$item.iname}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  {eq name="$map.nceng" value="2"}
<div class="layui-form-item">
    <label class="layui-form-label">选项分数：</label>
    <div class="layui-input-block">
      <input type="text" name="nzhi" value="{$item.nzhi}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
{/eq}
{eq name="$map.nceng" value="1"}
  {eq name="$ntype.ntype" value="3"}
  <div class="layui-form-item">
      <label class="layui-form-label">音乐地址：</label>
      <div class="layui-input-block">
        <input type="text" name="audio" value="{$item.audio}" placeholder="请输入内容" autocomplete="off" class="layui-input">
      </div>
    </div>
    {/eq}
  {/eq}
  <div class="layui-form-item">
    <label class="layui-form-label">题目图片：</label>
     <div class="layui-input-block">
     <div class="file-box">
     <i class="layui-icon">&#xe61f;</i>
     <input class="file-btn" type="button" value="选择图片">
     <input class="file-txt" type="text" autocomplete="off" name="iimage" id="textfield" value="{$item['iimage']}"><if condition="$item['iimage'] neq ''"><img src="http://static-resource.ufile.ucloud.com.cn/{$item.iimage}" height="30"><else/></if>
     <input class="file-file" type="file" name="pic" id="logo" size="28" onchange="document.getElementById('textfield').value=this.value" /> 
     </div>
     </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">排序：</label>
    <div class="layui-input-block">
      <input type="text" name="ishunxu" value="{$item.ishunxu}" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
      

  <div class="layui-form-item">
    <div class="layui-input-block">
	  <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
    </div>
  </div>

</form>
</div>

	<script>
  layui.use('form',function(){
     var form = layui.form();
  })
  </script>
	</div>
 </div>
  </div>
</div>
</div>
